//
//  LBProgressHUD.h
//  LBBase
//
//  Created by gary on 15/7/1.
//  Copyright (c) 2015年 Lebo. All rights reserved.
//

#import "MBProgressHUD.h"
#import "CustomIOS7AlertView.h"

@interface LBProgressHUD : MBProgressHUD

// Create a new HUD,add it to keyWindow.Show a text.
+ (void)showMessage:(NSString *)message;

// Create a new HUD,add it to view.Show a text.
+ (void)showMessage:(NSString *)message withView:(UIView *)view;

// Create a new HUD,add it to keyWindow.Show a text,dismiss the HUD after this time.
+ (void)showMessage:(NSString *)message afterDelay:(NSInteger)time;

// Create a new HUD,add it to view.Show a text,dismiss the HUD after this time.
+ (void)showMessage:(NSString *)message withView:(UIView *)view afterDelay:(NSInteger)time;

// Create a new HUD,add it to keyWindow.Show a text and an image,dissmiss the HUD after this time.
+ (void)showMessage:(NSString *)message andImage:(NSString*)imageName afterDelay:(NSInteger)time;

// Create a new HUD,add it to view.Show a text and an image,dissmiss the HUD after this time.
+ (void)showMessage:(NSString *)message
           withView:(UIView *)view
           andImage:(NSString*)imageName
         afterDelay:(NSInteger)time;

// Create a new process HUD,add it to keyWindow.Show a text.
+ (void)showWaitAlertWithMessage:(NSString *)text;

// Create a new process HUD,add it to view.Show a text.
+ (void)showWaitAlertWithMessage:(NSString *)text withView:(UIView *)view;

// Create a new process HUD,add it to keyWindow.
+ (void)showWaitAlert;

// Create a new process HUD,add it to view.
+ (void)showWaitAlertWithView:(UIView *)view;

// Hide all HUD on keyWindow.
+ (void)hideProgressHUD;

// Hide all HUD on view.
+ (void)hideProgressHUDWithView:(UIView *)view;

// Show select alert view. This alertview is different with UIAlertView. The window will always keep
// on top and will not cover system alertview. without animation from background to front.
typedef void (^CustomIOS7AlertViewBlock)(CustomIOS7AlertView *alertView, int buttonIndex);
+ (void)showSelectAlertView:(NSString *)title actionBlock:(CustomIOS7AlertViewBlock)block;
@end
